package com.ln.lnzw.adapter;

import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ln.lnzw.R;

import java.util.List;

/**
 * Created by wuwei on 2018/4/20.
 */

public class EvaluationSuggestionComplaintAdapter extends BaseQuickAdapter {
    private static final int MYLIVE_MODE_CHECK = 0;
    int mEditMode = MYLIVE_MODE_CHECK;
    private ImageView mCheckBox;

    public EvaluationSuggestionComplaintAdapter(int layoutResId, @Nullable List data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Object item) {
//        if (mEditMode == MYLIVE_MODE_CHECK) {
//            helper.getView(R.id.check_box).setVisibility(View.GONE);
//        } else {
//            helper.getView(R.id.check_box).setVisibility(View.VISIBLE);
//            if (item.isSelect()) {
////                helper.mCheckBox.setImageResource(R.mipmap.ic_checked);
//                mCheckBox=helper.getView(R.id.check_box);
//                mCheckBox.setImageResource(R.mipmap.icon_checkbox_r_c);
//            } else {
////                helper.mCheckBox.setImageResource(R.mipmap.ic_uncheck);
//                mCheckBox=helper.getView(R.id.check_box);
//                mCheckBox.setImageResource(R.mipmap.icon_checkbox_r);
//            }
//        }
    }

    public void setEditMode(int editMode) {
        mEditMode = editMode;
        notifyDataSetChanged();
    }
}
